package factory.a;

public class OperationDevision extends AbstractOperation {

	@Override
	public double operate() {
		
		if (this.numberTwo == 0) {
			throw new RuntimeException("除数不能为0!");
		}
		
		return this.numberOne / this.numberTwo;
	}

}
